#include <iostream>
#include <string>
// 包含SpireMS SDK头文件
#include <sms_core.h>


sms::CSVLogger logger({"time", "x", "y"}, "YourAppName");


int main(int argc, char *argv[])
{
    int i = 0;
    while (1)
    {
        logger.append({sms::get_time_sec(), (double)i, (double)i+1});
        i++;
        sms::msleep(100);
    }
    return 0;
}

